/**
 * 
 */
package com.fuzongle.test;

/**   
 * @Description:测试
 * @author: fuzongle   
 * @date: 2019年3月12日 下午4:15:20 
 */
public class yc {
	
	public static void main(String[] args) {

		try {
			System.out.println(1/0);
		} catch (Exception e) {
			System.out.println("aaa");
		}
        String[] sexs = {"A","B","C"};
        for(int i = 0; i < sexs.length; i++){
            if("C".equals(sexs[i])){
            	System.out.println("aaa");
                throw new MyException("报错了!");
            }else{
                System.out.println(sexs[i]);
            }
        } 
        
        
        
        
	}

}
